
package stcu.robjects;

import com.nvlled.route.*;
import stcu.Account;

public class MemberDel extends GroupObject {
    private String lastname;
    private String firstname;
    private String idNumber;

    public MemberDel(String gid, Account account) {
        super(gid);
        this.idNumber = account.getIDNumber();
        this.firstname = account.getFirstName();
        this.lastname = account.getLastName();
    }

    public Account getAccount() {
        return new Account(idNumber, lastname, firstname);
    }

    public String getIDNumber() {
        return idNumber;
    }

    public String getName() {
        return firstname + " " + lastname;
    }
}
